]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
userWidget: Stop expand flags from propagating
authorFlorian Müllner <fmuellner@gnome.org>
Tue, 20 Feb 2024 12:12:43 +0000 (13:12 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Fri, 1 Mar 2024 22:58:36 +0000 (23:58 +0100)
Since commit 9c2da01a9, the avatar's child is expanded to account
for the new St.Bin behavior. However as expand flags are propagated
up, this now results in avatar actor getting unintentionally expanded
in places like the end-session dialog.

Stop this by explicitly setting the avatar actor to not expand.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3221>

js/ui/userWidget.js

index 1fcde34e4a68a729c43151ae8a0ff006df3837d1..b29dfa68efa9fcd40c92e881b3d197c103719e03 100644 (file)
@@ -31,6 +31,8 @@ class Avatar extends St.Bin {
             reactive: params.reactive,
             width: params.iconSize * themeContext.scaleFactor,
             height: params.iconSize * themeContext.scaleFactor,
+            x_expand: false,
+            y_expand: false,
         });
 
         this._iconSize = params.iconSize;